home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
United Public Domain Gold 2
/
United Public Domain Gold 2.iso
/
utilities
/
pu703.dms
/
pu703.adf
/
Install
/
Install.IconX
next >
Wrap
Text File
|
1994-11-25
|
4KB
|
158 lines
; $VER: Install.IconX 37.1 (19.11.94)
;
; This script installs PowerData Professional, its preferences editor
; and all related libraries and files.
;
FailAt 21
Echo "PDPro installation script for use with IconX"
Echo "Copyright © 1994 by Michael Berg"
Echo "All Rights Reserved.*N"
Echo "Installing guifront.library..."
SetEnv DoCopyLib YES
Version >NIL: guifront.library 37
If NOT WARN
Echo " You already have:
" NOLINE
Version guifront.library
Echo "" NOLINE
Ask " Do you want to install
`Version /libs/guifront.library file`
?"
If NOT WARN
SetEnv DoCopyLib NO
EndIf
EndIf
If $DoCopyLib EQ "YES"
Echo " Copying guifront.library to your LIBS: ..."
Copy /libs/guifront.library LIBS: QUIET
Avail >NIL: FLUSH
Else
Echo " Skipped..."
EndIf
Echo "*NDo you wish to install
reqtools.library
?"
Ask "You need this library to use XPK encryption with PDPro [y/n]:"
If WARN
Echo " Installing reqtools.library..."
SetEnv DoCopyLib YES
Version >NIL: reqtools.library 38
If NOT WARN
Echo " You already have:
" NOLINE
Version reqtools.library
Ask " Do you want to install
`Version /libs/reqtools.library file`
?"
If NOT WARN
SetEnv DoCopyLib NO
EndIf
EndIf
If $DoCopyLib EQ "YES"
Echo " Copying reqtools.library to your LIBS: ..."
Copy /libs/reqtools.library LIBS: QUIET
Avail >NIL: FLUSH
Else
Echo " Skipped..."
EndIf
EndIf
Echo "*NDo you want to install the preferences editor for guifront.library?"
Echo "This library isn't strictly necessary in order to use PDProPrefs,"
Ask "it simply allows you to customize the way its GUI looks [y/n]:"
If WARN
Echo "*N Installing GUIFront preference editor..."
If EXISTS SYS:Prefs
SetEnv TargetDir Sys:Prefs/
Else
SetEnv TargetDir Sys:
Endif
Lab SelectDir0
Ask " Install in '$TargetDir'? [y/n]:"
If WARN
Echo " Copying /Prefs/GUIFront to '$TargetDir'..."
Copy /Prefs/GUIFront $TargetDir QUIET
Copy /Prefs/GUIFront.info $TargetDir QUIET
Else
Echo NOLINE " Enter other path, QUIT to skip this part: "
/GetLine >ENV:TargetDir
If NOT $TargetDir EQ "QUIT"
Skip BACK SelectDir
Else
Echo " Skipped..."
EndIf
EndIf
EndIf
Echo "*NInstalling PDPro preference editor..."
If EXISTS SYS:Prefs
SetEnv TargetDir Sys:Prefs/
Else
SetEnv TargetDir Sys:
Endif
Lab SelectDir
Ask " Install in '$TargetDir'? [y/n]:"
If WARN
Echo " Copying /Prefs/PDProPrefs to '$TargetDir'..."
Copy /Prefs/PDProPrefs $TargetDir QUIET
Copy /Prefs/PDProPrefs.info $TargetDir QUIET
Else
Echo NOLINE " Enter other path, QUIT to skip this part: "
/GetLine >ENV:TargetDir
If NOT $TargetDir EQ "QUIT"
Skip BACK SelectDir
Else
Echo " Skipped..."
EndIf
EndIf
Echo "*NInstalling PDPro transparent XPK file loader/saver..."
If EXISTS SYS:WBStartup
SetEnv TargetDir Sys:WBStartup/
Else
SetEnv TargetDir Sys:
Endif
Lab SelectDir2
Ask " Install in '$TargetDir'? [y/n]:"
If WARN
Echo " Copying /PDPro to '"$TargetDir"'..."
Copy /PDPro $TargetDir QUIET
Copy /PDPro.info $TargetDir QUIET
Else
Echo NOLINE " Enter other path, QUIT to skip installation: "
/GetLine >ENV:TargetDir
If NOT $TargetDir EQ "QUIT"
Skip BACK SelectDir2
Else
Echo " Installation skipped..."
EndIf
EndIf
Echo ""
If EXISTS Locale:Catalogs
Echo "Do you wish to install the catalog files for the PDPro"
Echo "preferences editor and XPK transparent file loader/saver?"
Ask "Kickstart 2.04 users should answer No, all others Yes: [y/n]:"
If WARN
Copy >NIL: Locale Locale: All QUIET
Echo "Catalogs installed"
EndIf
Else
Echo "(Catalog files not installed -- no Locale directory found)"
EndIf
Echo "*NInstallation complete. You may close the window now."